<?php
/**
 * DynamicObject.php - 27 Jan 2009
 * 
 * @author Kevin Breed
 */

class KB_DynamicObject
{
	private $_vars = array();
	
	public function __get ( $name )
	{
		return __get( $this->_vars[ $name ] );
	}
	
	public function __set ( $name, $value )
	{
		$this->_vars[ $name ] = $value;
	}
	
	public function __isset ( $name )
	{
		return isset( $this->_vars );
	}
	
	public function __unset ( $name )
	{
		unset( $this->_vars[ $name ] );
	}
}

?>